projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e94152d
)
colorbutton: fix crash when destroying the colorbutton from the color-set signal
author
Ignacio Casal Quinteiro
<icq@gnome.org>
Wed, 8 Jan 2014 13:37:57 +0000
(14:37 +0100)
committer
Ignacio Casal Quinteiro
<icq@gnome.org>
Wed, 8 Jan 2014 13:38:33 +0000
(14:38 +0100)
gtk/gtkcolorbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorbutton.c
b/gtk/gtkcolorbutton.c
index ae9afd14e2c9db5d2ab2084874ea62839246b3fe..027b384c53dbebeffcee63cea9a0c775b805bb11 100644
(file)
--- a/
gtk/gtkcolorbutton.c
+++ b/
gtk/gtkcolorbutton.c
@@
-567,6
+567,7
@@
dialog_response (GtkDialog *dialog,
gtk_widget_queue_draw (button->priv->draw_area);
+ g_object_ref (button);
g_signal_emit (button, color_button_signals[COLOR_SET], 0);
g_object_freeze_notify (G_OBJECT (button));
@@
-574,6
+575,7
@@
dialog_response (GtkDialog *dialog,
g_object_notify (G_OBJECT (button), "alpha");
g_object_notify (G_OBJECT (button), "rgba");
g_object_thaw_notify (G_OBJECT (button));
+ g_object_unref (button);
}
}